export default () => `<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:activiti="http://activiti.org/bpmn" xmlns:bioc="http://bpmn.io/schema/bpmn/biocolor/1.0" id="sample-diagram" targetNamespace="http://activiti.org/bpmn" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
  <bpmn2:process id="cicd_new" name="自动化发版流程（新）" isExecutable="true">
    <bpmn2:startEvent id="StartEvent_1" name="开始" activiti:initiator="applyUserId">
      <bpmn2:outgoing>Flow_191ib9g</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:userTask id="form1" name="项目经理" activiti:formKey="form1" activiti:assignee="\${applyUserId}">
      <bpmn2:extensionElements>
        <activiti:formProperty id="gw1-_!string-_!网关1-_!0-_!s" />
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_191ib9g</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1a8pzog</bpmn2:outgoing>
      <bpmn2:outgoing>Flow_15k0eem</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="Flow_191ib9g" sourceRef="StartEvent_1" targetRef="form1" />
    <bpmn2:userTask id="Activity_08a9itk" name="项目总监" activiti:candidateGroups="mchAdmin">
      <bpmn2:incoming>Flow_1a8pzog</bpmn2:incoming>
      <bpmn2:incoming>Flow_17todv5</bpmn2:incoming>
      <bpmn2:outgoing>Flow_07y4dio</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="Flow_1a8pzog" sourceRef="form1" targetRef="Activity_08a9itk">
      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">\${gw1 == 0}</bpmn2:conditionExpression>
    </bpmn2:sequenceFlow>
    <bpmn2:userTask id="Activity_050tid0" name="质量总监" activiti:candidateGroups="mchAdmin">
      <bpmn2:incoming>Flow_07y4dio</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1epu0uj</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="Flow_07y4dio" sourceRef="Activity_08a9itk" targetRef="Activity_050tid0" />
    <bpmn2:userTask id="form2" name="产品线负责人" activiti:formKey="form2" activiti:candidateGroups="mchAdmin">
      <bpmn2:extensionElements>
        <activiti:formProperty id="gw2-_!string-_!网关2-_!0-_!s" />
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_1epu0uj</bpmn2:incoming>
      <bpmn2:outgoing>Flow_11j1l9w</bpmn2:outgoing>
      <bpmn2:outgoing>Flow_02i6q64</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="Flow_1epu0uj" sourceRef="Activity_050tid0" targetRef="form2" />
    <bpmn2:userTask id="Activity_06o4e51" name="PMO" activiti:candidateGroups="mchAdmin">
      <bpmn2:incoming>Flow_11j1l9w</bpmn2:incoming>
      <bpmn2:incoming>Flow_0sl0ppq</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1w8dulh</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="Flow_11j1l9w" sourceRef="form2" targetRef="Activity_06o4e51">
      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">\${gw2 == 0}</bpmn2:conditionExpression>
    </bpmn2:sequenceFlow>
    <bpmn2:userTask id="Activity_0thk9tb" name="运维经理" activiti:candidateGroups="mchAdmin">
      <bpmn2:incoming>Flow_1w8dulh</bpmn2:incoming>
      <bpmn2:incoming>Flow_1vrz1b3</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0yfu3v3</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="Flow_1w8dulh" sourceRef="Activity_06o4e51" targetRef="Activity_0thk9tb" />
    <bpmn2:userTask id="form3" name="蓝鲸平台" activiti:formKey="form3" activiti:candidateGroups="mchAdmin">
      <bpmn2:extensionElements>
        <activiti:formProperty id="gw3-_!string-_!网关3-_!0-_!s" />
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_0yfu3v3</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1v3hrad</bpmn2:outgoing>
      <bpmn2:outgoing>Flow_1vrz1b3</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="Flow_0yfu3v3" sourceRef="Activity_0thk9tb" targetRef="form3" />
    <bpmn2:endEvent id="Event_0p9gtgx" name="结束">
      <bpmn2:incoming>Flow_1v3hrad</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:sequenceFlow id="Flow_1v3hrad" sourceRef="form3" targetRef="Event_0p9gtgx">
      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">\${gw3 == 1}</bpmn2:conditionExpression>
    </bpmn2:sequenceFlow>
    <bpmn2:userTask id="Activity_14b46jj" name="DBA审核" activiti:candidateGroups="mchAdmin">
      <bpmn2:incoming>Flow_15k0eem</bpmn2:incoming>
      <bpmn2:outgoing>Flow_17todv5</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="Flow_15k0eem" sourceRef="form1" targetRef="Activity_14b46jj">
      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">\${gw1 == 1}</bpmn2:conditionExpression>
    </bpmn2:sequenceFlow>
    <bpmn2:sequenceFlow id="Flow_17todv5" sourceRef="Activity_14b46jj" targetRef="Activity_08a9itk" />
    <bpmn2:userTask id="Activity_1pynizt" name="产品总监" activiti:candidateGroups="mchAdmin">
      <bpmn2:incoming>Flow_02i6q64</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0sl0ppq</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="Flow_02i6q64" sourceRef="form2" targetRef="Activity_1pynizt">
      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">\${gw2 == 1}</bpmn2:conditionExpression>
    </bpmn2:sequenceFlow>
    <bpmn2:sequenceFlow id="Flow_0sl0ppq" sourceRef="Activity_1pynizt" targetRef="Activity_06o4e51" />
    <bpmn2:sequenceFlow id="Flow_1vrz1b3" sourceRef="form3" targetRef="Activity_0thk9tb">
      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">\${gw3 == 0}</bpmn2:conditionExpression>
    </bpmn2:sequenceFlow>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="cicd_new">
      <bpmndi:BPMNEdge id="Flow_1vrz1b3_di" bpmnElement="Flow_1vrz1b3">
        <di:waypoint x="1510" y="218" />
        <di:waypoint x="1510" y="170" />
        <di:waypoint x="1350" y="170" />
        <di:waypoint x="1350" y="218" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0sl0ppq_di" bpmnElement="Flow_0sl0ppq">
        <di:waypoint x="1190" y="330" />
        <di:waypoint x="1190" y="298" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_02i6q64_di" bpmnElement="Flow_02i6q64">
        <di:waypoint x="1030" y="298" />
        <di:waypoint x="1030" y="370" />
        <di:waypoint x="1140" y="370" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_17todv5_di" bpmnElement="Flow_17todv5" bioc:stroke="green" bioc:fill="green">
        <di:waypoint x="710" y="330" />
        <di:waypoint x="710" y="298" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_15k0eem_di" bpmnElement="Flow_15k0eem" bioc:stroke="green" bioc:fill="green">
        <di:waypoint x="550" y="298" />
        <di:waypoint x="550" y="370" />
        <di:waypoint x="660" y="370" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1v3hrad_di" bpmnElement="Flow_1v3hrad">
        <di:waypoint x="1560" y="258" />
        <di:waypoint x="1622" y="258" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0yfu3v3_di" bpmnElement="Flow_0yfu3v3">
        <di:waypoint x="1400" y="258" />
        <di:waypoint x="1460" y="258" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1w8dulh_di" bpmnElement="Flow_1w8dulh">
        <di:waypoint x="1240" y="258" />
        <di:waypoint x="1300" y="258" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_11j1l9w_di" bpmnElement="Flow_11j1l9w">
        <di:waypoint x="1080" y="258" />
        <di:waypoint x="1140" y="258" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1epu0uj_di" bpmnElement="Flow_1epu0uj" bioc:stroke="green" bioc:fill="green">
        <di:waypoint x="920" y="258" />
        <di:waypoint x="980" y="258" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_07y4dio_di" bpmnElement="Flow_07y4dio" bioc:stroke="green" bioc:fill="green">
        <di:waypoint x="760" y="258" />
        <di:waypoint x="820" y="258" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1a8pzog_di" bpmnElement="Flow_1a8pzog">
        <di:waypoint x="600" y="258" />
        <di:waypoint x="660" y="258" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_191ib9g_di" bpmnElement="Flow_191ib9g" bioc:stroke="green" bioc:fill="green">
        <di:waypoint x="448" y="258" />
        <di:waypoint x="500" y="258" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1" bioc:stroke="gray" bioc:fill="#eae9e9">
        <dc:Bounds x="412" y="240" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="419" y="283" width="22" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0jqex69_di" bpmnElement="form1" bioc:stroke="green" bioc:fill="#a3d68e">
        <dc:Bounds x="500" y="218" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_08a9itk_di" bpmnElement="Activity_08a9itk" bioc:stroke="green" bioc:fill="#a3d68e">
        <dc:Bounds x="660" y="218" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_050tid0_di" bpmnElement="Activity_050tid0" bioc:stroke="gray" bioc:fill="#eae9e9">
        <dc:Bounds x="820" y="218" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0m1sg12_di" bpmnElement="form2" bioc:stroke="green" bioc:fill="yellow">
        <dc:Bounds x="980" y="218" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_06o4e51_di" bpmnElement="Activity_06o4e51">
        <dc:Bounds x="1140" y="218" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0thk9tb_di" bpmnElement="Activity_0thk9tb">
        <dc:Bounds x="1300" y="218" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1q6asbt_di" bpmnElement="form3">
        <dc:Bounds x="1460" y="218" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0p9gtgx_di" bpmnElement="Event_0p9gtgx">
        <dc:Bounds x="1622" y="240" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1629" y="283" width="22" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_14b46jj_di" bpmnElement="Activity_14b46jj" bioc:stroke="gray" bioc:fill="#eae9e9">
        <dc:Bounds x="660" y="330" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1pynizt_di" bpmnElement="Activity_1pynizt">
        <dc:Bounds x="1140" y="330" width="100" height="80" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>
`;
